how to determing longevity